package com.lai.qq.admin.biz.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "车型请求参数")
public class AutoModelReq{

    @ApiModelProperty(value = "modelId")
    @NotNull(message="modelId不能为空")
    @Min(value = 0, message = "modelId格式不正确")
    @Max(value = 2147483647, message = "用户Id格式不正确")
    private Integer modelId;

    @ApiModelProperty(value = "sizeId")
    @NotNull(message="sizeId不能为空")
    @Min(value = 0, message = "sizeId格式不正确")
    @Max(value = 2147483647, message = "sizeId格式不正确")
    private Integer sizeId;

    @ApiModelProperty(value = "brandId")
    @NotNull(message="brandId不能为空")
    @Min(value = 0, message = "brandId格式不正确")
    @Max(value = 2147483647, message = "brandId格式不正确")
    private Integer brandId;

    @NotNull
    private String modelName;

    @NotNull
    private String modelYear;

    @ApiModelProperty(value = "valid")
    @NotNull(message="valid不能为空")
    @Min(value = 0, message = "valid格式不正确")
    @Max(value = 2147483647, message = "valid格式不正确")
    private Integer valid;

    @NotNull
    private String modelDesc;

    @ApiModelProperty(value = "powertypeId")
    @NotNull(message="powertypeId不能为空")
    @Min(value = 0, message = "powertypeId格式不正确")
    @Max(value = 2147483647, message = "powertypeId格式不正确")
    private Integer powertypeId;

    @NotBlank(message="modelNameInner不能为空")
    @Length(min = 0, max = 100, message = "modelNameInner长度不超过100")
    private String modelNameInner;

    @NotBlank(message="modelNameOut不能为空")
    @Length(min = 0, max = 100, message = "modelNameOut长度不超过100")
    private String modelNameOut;

    @ApiModelProperty(value = "engineType")
    @NotNull(message="engineType不能为空")
    @Min(value = 0, message = "engineType格式不正确")
    @Max(value = 2147483647, message = "engineType格式不正确")
    private Integer engineType;

}